package com.qf.hospital.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.qf.hospital.entity.OutPatientType;
import com.qf.hospital.mapper.OutPatientTypeMapper;
import com.qf.hospital.service.OutPatientTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Administrator
 * @version V1.0
 * @Project hospital
 * @Package com.qf.hospital.service.impl
 * @Description: ${TODO}
 * @Date 2021/10/22 10:17
 */

@Service
public class outPatientTypeServiceImpl implements OutPatientTypeService {

    @Autowired
    private OutPatientTypeMapper outPatientTypeMapper;


    @Override
    public PageInfo<OutPatientType> findOutPatientTypeInfo(String projectName, Integer page, Integer limit) {

        PageHelper.startPage(page, limit);
        List<OutPatientType> list = outPatientTypeMapper.findOutPatientTypeInfos(projectName);
        PageInfo<OutPatientType> pageInfo = new PageInfo<>(list);
        return pageInfo;

    }
}
